home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 138
/
Volume 138 Aug 19 2011 - Damaged.iso
/
Games
/
shadez.swf
/
scripts
/
Shadez_TheBlackOperations_fla
/
MainTimeline.as
< prev
next >
Wrap
Text File
|
2011-08-19
|
4KB
|
153 lines
package Shadez_TheBlackOperations_fla
{
import Local.CGlobal;
import Local.Movie.CMovieLoad;
import flash.display.MovieClip;
import flash.display.SimpleButton;
import flash.events.Event;
import flash.text.TextField;
import flash.utils.getTimer;
public dynamic class MainTimeline extends MovieClip
{
public var tfVersion:TextField;
public var mcADAlternate:MovieClip;
public var mcBackground:MovieClip;
public var mcLogo:MovieClip;
public var mcFader:MovieClip;
public var mcError_WrongVersion:MovieClip;
public var mcSTC:MovieClip;
public var mcADLoader:MovieClip;
public var mcSize:MovieClip;
public var bPlay:SimpleButton;
public var mcCover:MovieClip;
public var startTime2:int;
public var mcLoading:MovieClip;
public var mcCMG:MovieClip;
public function MainTimeline()
{
super();
addFrameScript(0,frame1,82,frame83,83,frame84,84,frame85,85,frame86);
}
function frame84() : *
{
if(true)
{
stop();
mcSTC.START();
}
}
function frame86() : *
{
if(true)
{
removeChild(mcError_WrongVersion);
stop();
}
}
function frame85() : *
{
if(true)
{
this.addEventListener(Event.ENTER_FRAME,e_COVERFADE_OUT);
if(true)
{
mcCover.alpha = 1;
startTime2 = getTimer();
}
stop();
}
}
public function e_COVERFADE_OUT(param1:Event) : void
{
var _loc2_:Number = NaN;
if(true)
{
_loc2_ = (getTimer() - startTime2) / (1 * 1000);
if(true)
{
mcCover.alpha = 1 - _loc2_;
if(true)
{
if(mcCover.alpha <= 0)
{
}
§§goto(addr59);
}
this.removeEventListener(Event.ENTER_FRAME,e_COVERFADE_OUT);
}
gotoAndStop(1,"MAIN");
}
addr59:
}
function frame1() : *
{
new CMovieLoad(this);
stop();
}
public function e_STCFINISHED(param1:Event) : void
{
mcSTC.visible = false;
mcSTC.removeEventListener("FINISHED",e_STCFINISHED);
mcCMG.visible = true;
mcCMG.addEventListener("FINISHED",e_CMGFINISHED);
mcCMG.START();
}
public function e_CMGFINISHED(param1:Event) : void
{
mcCMG.removeEventListener("FINISHED",e_CMGFINISHED);
nextFrame();
}
function frame83() : *
{
if(true)
{
mcSTC.visible = false;
if(true)
{
mcCMG.visible = false;
if(true)
{
mcError_WrongVersion.visible = false;
if(true)
{
mcSTC.addEventListener("FINISHED",e_STCFINISHED);
}
if(CGlobal.mShowIntro)
{
nextFrame();
}
§§goto(addr53);
}
gotoAndStop(3);
}
}
addr53:
}
}
}